<?php


namespace app\models\coupon;


use think\Model;

class UserCouponModel extends Model
{
    protected $name = 'user_coupon';
    protected $autoWriteTimestamp = true;


    public function getUseTimeAttr($value)
    {
        if (!$value) {
            return $value;
        }
        return date('Y-m-d H:s', $value);
    }
}